{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# VNA control" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**scikit-rf** has a few virtual instrument classes, located in the `skrf.vi` module. This page demonstrates the basic control of a PNA" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Connecting and querying instrument ID" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " from skrf.vi.vna import keysight\n", "\n", " instr = keysight.PNA(\"TCPIP0::192.168.0.2::INSTR\")\n", " instr.id" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Retrieving S-parameters as a scikit-rf Network" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ntwk = instr.get_snp_network()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "anaconda-cloud": {}, "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.12" } }, "nbformat": 4, "nbformat_minor": 4 }